﻿namespace Resources.Scripts.Socket.MyChat.Protocol
{
    public class ChatMessage
    {
        public ChatChannel Channel;
        public int Id;
        public int FromId;
        public string FromName;
        public int ToId;
        public string ToName;
        public string Message;
        public double Time;

        public ChatMessage(ChatChannel channel, int fromId, string fromName, string message)
        {
            Channel = channel;
            FromId = fromId;
            FromName = fromName;
            Message = message;
        }

        public ChatMessage()
        {
            
        }
    }
}